import service from '@/utils/request'

export const useOrderOrderApi = (id: number) => {
	return service.get('/ss/order/' + id)
}

export const useOrderOrderSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/ss/order', dataForm)
	} else {
		return service.post('/ss/order', dataForm)
	}
}


export const closeUserOrderSubmitApi = (dataForm: any) => {
		return service.post('/ss/order/endToCharge', dataForm)
}